<%@ page language="java" contentType="text/html; charset=UTF-8"%>

<!DOCTYPE html>
<html>
	<head>
		<title>商城后台_分类管理</title>
		<%@include file="../header.jsp" %>
		<style>
		
			body{padding-top: 70px;}
			
			._detail{width: 1000px;height: 600px; background-color: white;margin: 0 auto;}
			._detail_good{width: 950px;height: 550px;margin: 0 auto;}
			._detail_good_img{width: 449px;height: 449px;border:1px solid gray;margin: 10px;float:left;border-radius: 5px;overflow: hidden;}
			._detail_good_img img{width: 100%;height: 100%;}
			._detail_good_text{width: 429px;height: 449px;border:1px solid gray;padding-left:20px;float:right;margin: 10px;border-radius: 5px;overflow: hidden;}
			.row{margin-top:25px;}
			/*a  upload */
			.a-upload {padding: 4px 10px;height: 20px;line-height: 20px;position: relative;cursor: pointer;color: #888;background: #fafafa;border: 1px solid #ddd;border-radius: 4px; overflow: hidden;display: inline-block;*display: inline;*zoom: 1}
			.a-upload  input {position: absolute;font-size: 100px;right: 0;top: 0;opacity: 0;filter: alpha(opacity=0);cursor: pointer}
			.a-upload:hover {color: #444;background: #eee;border-color: #ccc;text-decoration: none}
			
		</style>
	</head>
	<body>
		<%@include file="top.jsp" %>
		
		<form action="admin/admin_doModify.action" method="POST" enctype="multipart/form-data" >
			<div class="_detail">
				<div class="_detail_good">
					<s:hidden name="good.id"></s:hidden>
					<s:hidden name="good.category_id"></s:hidden>
					<s:hidden name="good.img"></s:hidden>
					
					<div class="_detail_good_img">
						<img src="${basePath }img/goods/<s:property value="good.img"/>" />
					</div>
					<div class="_detail_good_text">
						<div class="row">
							<div class="span4">
								<s:textfield name="good.name" placeholder="这里输入商品名称" ></s:textfield>
							</div>
						</div>
						
						<div class="row">
							<div class="span4">
								<s:textfield name="good.price" placeholder="这里输入商品价钱" ></s:textfield>
							</div>
						</div>
						
						<div class="row">
							<div class="span4">
								<s:textfield name="good.description" placeholder="这里输入商品描述" cssClass="span4" ></s:textfield>
							</div>
						</div>
						<div class="row">
							<div class="span4">
								<s:textfield name="good.place" placeholder="这里输入商品产地" ></s:textfield>
							</div>
						</div>
						
						<div class="row">
							<div class="span4">
								<a href="javascript:;" class="a-upload">
								    <input type="file" name="goodImg" >上传修改商品图片文件(png,jpg,bmp类型)
								</a>
							</div>
						</div>	
						
						<div class="row">
							<div class="span1">
								<button class="btn btn-info" style="width:" onclick="history.go(-1);">返回</button>
							</div>
							<div class="span1">
								<button id="_modify" class="btn btn-danger" onclick="domodify()">修改</button>
							</div>
						</div>						
					</div>
				</div>
			</div>
		</form>
			
		
		<script>
			$('.dropdown-toggle').dropdown();
			
			
			//修改
			function domodify(){
				document.forms[0].submit();
			}
			
			
		</script>
	</body>
</html>
